echo off

set ROOT_NAME=www.jf_root.com
set RP_NAME=www.jf_rp.com
set STS_NAME=www.jf_sts.com
set CLIENT_NAME=www.jf_client.com

echo ************
echo Removing any certificates that are already installed
echo ************

certmgr -del -r LocalMachine -s Root -c -n %ROOT_NAME%

REM Server Certs
certmgr -del -r LocalMachine -s My -c -n %SERVER_NAME%

REM Client Cert
certmgr -del -r LocalMachine -s My -c -n %CLIENT_NAME%

REM Router Cert
certmgr -del -r LocalMachine -s My -c -n %STS_NAME%

